<html>
<head>
<title>Pair.java</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #cc7832;}
.s1 { color: #a9b7c6;}
</style>
</head>
<body bgcolor="#2b2b2b">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
Pair.java</font>
</center></td></tr></table>
<pre><span class="s0">public class </span><span class="s1">Pair&lt;K</span><span class="s0">, </span><span class="s1">V&gt; {</span>
    <span class="s0">private final </span><span class="s1">K key</span><span class="s0">;</span>
    <span class="s0">private final </span><span class="s1">V value</span><span class="s0">;</span>

    <span class="s0">public </span><span class="s1">Pair(K key</span><span class="s0">, </span><span class="s1">V value) {</span>
        <span class="s0">this</span><span class="s1">.key = key</span><span class="s0">;</span>
        <span class="s0">this</span><span class="s1">.value = value</span><span class="s0">;</span>
    <span class="s1">}</span>


    <span class="s0">public </span><span class="s1">K getKey() {</span>
        <span class="s0">return </span><span class="s1">key</span><span class="s0">;</span>
    <span class="s1">}</span>

    <span class="s0">public </span><span class="s1">V getValue() {</span>
        <span class="s0">return </span><span class="s1">value</span><span class="s0">;</span>
    <span class="s1">}</span>
<span class="s1">}</span></pre>
</body>
</html>